import { ModuleWithProviders } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'

export const routes: Routes = [
  {
    path: 'record',
    loadChildren: 'app/+device-management/+record/record.module#RecordModule'
  },
  {
    path: 'record-first',
    loadChildren: 'app/+device-management/+record-first/record-first.module#RecordFirstModule'
  },
  {
    path: 'record-second',
    loadChildren: 'app/+device-management/+record-second/record-second.module#RecordSecondModule'
  },
  {
    path: 'record/record-page',
    loadChildren: 'app/+device-management/+record-page/record-page.module#RecordPageModule'
  },
  {
    path: 'fault',
    loadChildren: 'app/+device-management/+fault/fault.module#FaultModule'
  },
  {
    path: 'device-fault',
    loadChildren: 'app/+device-management/+device-fault/device-fault.module#DeviceFaultModule'
  },
  {
    path: 'device-repaired',
    loadChildren: 'app/+device-management/+device-repaired/device-repaired.module#DeviceRepairedModule'
  },
  {
    path: 'fault/fault-page',
    loadChildren: 'app/+device-management/+fault-page/fault-page.module#FaultPageModule'
  },
  {
    path: 'onlineMonitor',
    loadChildren: 'app/+device-management/+onlineMonitor/onlineMonitor.module#OnlineMonitorModule'
  },
  {
    path: 'event-status',
    loadChildren: 'app/+device-management/+event-status/event-status.module#EventStatusModule'
  },
  {
    path: 'event-voltage',
    loadChildren: 'app/+device-management/+event-voltage/event-voltage.module#EventVoltageModule'
  },
  {
    path: 'release-record',
    loadChildren: 'app/+device-management/+release-record/release-record.module#ReleaseRecordModule'
  },
  {
    path: 'project-daily',
    loadChildren: 'app/+device-management/+project-daily/project-daily.module#ProjectDailyModule'
  },
  {
    path: 'faultV2',
    loadChildren: 'app/+device-management/+faultV2/faultV2.module#FaultV2Module'
  },
  {
    path: 'damaged-device-return',
    loadChildren: 'app/+device-management/+damaged-device-return/damaged-device-return.module#DamagedDeviceReturnModule'
  },
  {
    path: 'device-sign-for',
    loadChildren: 'app/+device-management/+device-sign-for/device-sign-for.module#DeviceSignForModule'
  },
  {
    path: 'bad-record',
    loadChildren: 'app/+device-management/+bad-record/bad-record.module#BadRecordModule'
  },
  {
    path: 'repaire-detail',
    loadChildren: 'app/+device-management/+repaire-detail/repaire-detail.module#RepaireDetailModule'
  },
  {
    path: 'fault-outsource',
    loadChildren: 'app/+device-management/+fault-outsource/fault-outsource.module#FaultOutsourceModule'
  },
  {
    path: 'record-outsource',
    loadChildren: 'app/+device-management/+record-outsource/record-outsource.module#RecordOutsourceModule'
  },
  {
    path: 'car-outsource',
    loadChildren: 'app/+device-management/+car-outsource/car-outsource.module#carOutsourceModule'
  },
  {
    path: 'wx-pay2',
    loadChildren: 'app/+device-management/+wx-pay2/wx-pay2.module#WXPay2Module'
  },
  {
    path: 'examine-staff',
    loadChildren: 'app/+device-management/+examine-staff/examine-staff.module#ExamineStaffModule'
  },
  {
    path: 'examine-scheme',
    loadChildren: 'app/+device-management/+examine-scheme/examine-scheme.module#ExamineSchemeModule'
  },
  {
    path: 'examine-scheme/scheme-add',
    loadChildren: 'app/+device-management/+examine-scheme-add/examine-scheme-add.module#ExamineSchemeAddModule'
  },
  //   项目实施团队 menus
  {
    path: 'outsource-user',
    loadChildren: 'app/+device-management/+outsource-user/outsource-user.module#OutsourceUserModule'
  },
  {
    path: 'outsource-user/user-page',
    loadChildren: 'app/+device-management/+user-page/user-page.module#UserPageModule'
  },
  {
    path: 'regional-manager',
    loadChildren: 'app/+device-management/+regional-manager/regional-manager.module#RegionalManagerModule'
  },
  {
    path: 'stuff-worktime',
    loadChildren: 'app/+device-management/+stuff-worktime/stuff-worktime.module#StuffWorktimeModule'
  },
  {
    path: 'installer-statistics',
    loadChildren: 'app/+device-management/+installer-statistics/installer-statistics.module#InstallerStatisticsModule'
  },
  {
    path: 'host-replace-record',
    loadChildren: 'app/+device-management/+host-replace-record/host-replace-record.module#HostReplaceRecordModule'
  },
  {
    path: 'device-relieve-record',
    loadChildren: 'app/+device-management/+device-relieve-record/device-relieve-record.module#DeviceRelieveRecordModule'
  }
]

export const routing = RouterModule.forChild(routes)
